CC=g++
CFLAGS=-Wall

OBJECTS=main.o my_vector.o
TARGET=tst

RM=rm -f


$(TARGET): $(OBJECTS)
	$(CC) -o $@ $(OBJECTS)

%.o: %.cpp
	$(CC) $(CFLAGS) -c $< 

main.o: main.cpp my_vector.h
my_vector.o: my_vector.cpp my_vector.h

clean:
	$(RM) $(OBJECTS) $(TARGET)
